package br.com.brazillog.domain;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 
 * @author Gabriel Cardelli
 *
 */
@Entity
public class Booking implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id 
	@GeneratedValue(strategy=GenerationType.AUTO)
	private String number;
	
	@OneToOne private Cliente shipper;

	@OneToOne private Porto portOfLoading;
	
	@OneToOne private Porto portOfDischarge;
	
	private String transhipment;
	
	private String vessel;
	
	@Temporal(TemporalType.DATE) private Calendar etaOrigem;
	
	private String berthingTerminal;
	
	@Temporal(TemporalType.DATE) private Calendar deadLineDraft;
	
	@Temporal(TemporalType.DATE) private Calendar deadLineCarga;
	
	private String volume;
	
	private String commodity;
	
	private String netWeight;
	
	private String cntr;
	
	private Double buyFreight;
	
	private Double sellFreight;
	
	private String capatazia;
	
	private String blFee;

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public Cliente getShipper() {
		return shipper;
	}

	public void setShipper(Cliente shipper) {
		this.shipper = shipper;
	}

	public Porto getPortOfLoading() {
		return portOfLoading;
	}

	public void setPortOfLoading(Porto portOfLoading) {
		this.portOfLoading = portOfLoading;
	}

	public Porto getPortOfDischarge() {
		return portOfDischarge;
	}

	public void setPortOfDischarge(Porto portOfDischarge) {
		this.portOfDischarge = portOfDischarge;
	}

	public String getTranshipment() {
		return transhipment;
	}

	public void setTranshipment(String transhipment) {
		this.transhipment = transhipment;
	}

	public String getVessel() {
		return vessel;
	}

	public void setVessel(String vessel) {
		this.vessel = vessel;
	}

	public Calendar getEtaOrigem() {
		return etaOrigem;
	}

	public void setEtaOrigem(Calendar etaOrigem) {
		this.etaOrigem = etaOrigem;
	}

	public String getBerthingTerminal() {
		return berthingTerminal;
	}

	public void setBerthingTerminal(String berthingTerminal) {
		this.berthingTerminal = berthingTerminal;
	}

	public Calendar getDeadLineDraft() {
		return deadLineDraft;
	}

	public void setDeadLineDraft(Calendar deadLineDraft) {
		this.deadLineDraft = deadLineDraft;
	}

	public Calendar getDeadLineCarga() {
		return deadLineCarga;
	}

	public void setDeadLineCarga(Calendar deadLineCarga) {
		this.deadLineCarga = deadLineCarga;
	}

	public String getVolume() {
		return volume;
	}

	public void setVolume(String volume) {
		this.volume = volume;
	}

	public String getCommodity() {
		return commodity;
	}

	public void setCommodity(String commodity) {
		this.commodity = commodity;
	}

	public String getNetWeight() {
		return netWeight;
	}

	public void setNetWeight(String netWeight) {
		this.netWeight = netWeight;
	}

	public String getCntr() {
		return cntr;
	}

	public void setCntr(String cntr) {
		this.cntr = cntr;
	}

	public Double getBuyFreight() {
		return buyFreight;
	}

	public void setBuyFreight(Double buyFreight) {
		this.buyFreight = buyFreight;
	}

	public Double getSellFreight() {
		return sellFreight;
	}

	public void setSellFreight(Double sellFreight) {
		this.sellFreight = sellFreight;
	}

	public String getCapatazia() {
		return capatazia;
	}

	public void setCapatazia(String capatazia) {
		this.capatazia = capatazia;
	}

	public String getBlFee() {
		return blFee;
	}

	public void setBlFee(String blFee) {
		this.blFee = blFee;
	}
	
	

	
}
